<script setup>
import { ref } from "vue";
const list = ref([1, 2, 3, 4, 5, 6, 7, 8, 9]);

import { computed } from "vue";
const resData = computed(() => {
  return list.value.filter((item) => item > 2);
});

setTimeout(() => {
  list.value.push(0, 10);
}, 3000);
</script>

<template>
  <div>原始数据: {{ list }}</div>
  <div>处理之后的数据: {{ resData }}</div>
</template>